Skip to content

core: add 'command finished' notifications - #8992

Merged
mitchellh merged 2 commits into
ghostty-org:mainfrom
jcollie:core-command-finish-notify
Oct 3, 2025
Merged

mitchellh merged 2 commits into
ghostty-org:mainfrom
jcollie:core-command-finish-notify

Conversation

@jcollie

@jcollie jcollie commented Oct 2, 2025

Copy link
Copy Markdown
Member

Fixes #8991

Uses OSC 133 esc sequences to keep track of how long commands take to execute. If the user chooses, commands that take longer than a user specified limit will trigger a notification. The user can choose between a bell notification or a desktop notification.

@jcollie
jcollie requested review from a team as code owners October 2, 2025 04:52
@jcollie jcollie added this to the 1.3.0 milestone Oct 2, 2025
@00-kat 00-kat added os/linux gui GUI or app issue regardless of platform (i.e. Swift, GTK) labels Oct 2, 2025
@jcollie

jcollie commented Oct 2, 2025 •

Copy link
Copy Markdown
Member Author

This'll need a macOS implementation since most of the functionality is implemented in the apprt.

@jcollie
jcollie force-pushed the core-command-finish-notify branch from 304b376 to e7c4350 Compare October 2, 2025 04:59

@mitchellh mitchellh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some fairly simple requests. The big picture design looks good.

Comment thread include/ghostty.h
Comment thread src/apprt/surface.zig Outdated
Comment thread src/apprt/surface.zig Outdated
Comment thread src/Surface.zig Outdated
Fixes ghostty-org#8991

Uses OSC 133 esc sequences to keep track of how long commands take to
execute. If the user chooses, commands that take longer than a user
specified limit will trigger a notification. The user can choose between
a bell notification or a desktop notification.
@jcollie
jcollie force-pushed the core-command-finish-notify branch from e7c4350 to 1c23ebc Compare October 2, 2025 17:57
@mitchellh
mitchellh merged commit f8ef51f into ghostty-org:main Oct 3, 2025
49 checks passed
@jcollie
jcollie deleted the core-command-finish-notify branch October 3, 2025 18:43
@00-kat

00-kat commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

This'll need a macOS implementation since most of the functionality is implemented in the apprt.

Did that ever happen? I don't see it in this PR, nor the source tree, nor can I find an issue tracking it.

@jcollie

jcollie commented Feb 18, 2026

Copy link
Copy Markdown
Member Author

This'll need a macOS implementation since most of the functionality is implemented in the apprt.

Did that ever happen? I don't see it in this PR, nor the source tree, nor can I find an issue tracking it.

Neither has happened.

mitchellh added a commit that referenced this pull request Feb 26, 2026
fixes #10840

Implement command finished notifications for MacOS. Building on the work
of #8992

### AI Tools Used
* Cursor
* Models
    * Opus 4.6
    * Composer 1.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gui GUI or app issue regardless of platform (i.e. Swift, GTK) os/linux

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement command finished notifications.

3 participants